package com.mmlc.meimei.lichengkongjian.customview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.EditText;

import com.mmlc.widget.PhoneTextWatcher;

/**
 * 圆形ImageView，可设置最多两个宽度不同且颜色不同的圆形边框。
 *
 * @author chenyan
 */
public class PhoneEditText extends EditText {
    public PhoneEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
        addTextChangedListener(new PhoneTextWatcher(this));
    }

    public String getInputText() {
        String ret = "";
        ret = getText().toString().replace(" ", "");
        return ret;
    }
}
